﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eneta.Portal.Forum.Core.Data;
using Eneta.Portal.Forum.Core.Domain.Collections;
using Eneta.Portal.Forum.Core.Domain.Entities;

namespace Eneta.Portal.Forum.Core.Domain.Repositories
{
    public class GroupRepository
    {
        // Fields
        private readonly GroupDao _dao = new GroupDao();

        // Methods
        public Group FindById(int id)
        {
            return _dao.FindById(id);
        }

        public GroupCollection GetAll()
        {
            return _dao.GetAll();
        }

        public int Save(Group group)
        {
            return _dao.Save(group);
        }
    }
}
